<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<table width="100%">
	<tbody>
		<tr>
			<td class="sectionheading bottom-border">
				Homepage and Homepage-like Listing Options
			</td>
		</tr>
		<tr>
			<td>
				<table class="verdana12blacknormal" width="100%">
					<tbody>
						<tr>
							<td>
								<s:a href="showListingOptions.htm"
									cssClass="verdana11greynormal">Lists
					settings</s:a>
								<br>
								<br>
								<s:form id="form" method="post"
									action="updateHomepageListsSettings.htm" theme="simple"
									theme="simple">
									
									<table width="100%" class="Textfiled-border" border="1">
										<tbody>
											<tr>
												<td>
													<s:actionerror />
												</td>
											</tr>
											<tr align="center" class="Textfiled-border">
												<td rowspan="2" align="right" class="verdana12Greybold">
													&nbsp;
												</td>
												<s:iterator value="myHashmapSettingsMap" status="stat">
												
													<s:if test="%{myHashmapSettingsMap[#stat.index].type == 'Central list'}">
														<td rowspan="2" align="center" class="verdana12blacknormal" class="Textfiled-border">
															<s:text name="%{myHashmapSettingsMap[#stat.index].type}"   />
														</td>
													</s:if>
												</s:iterator>
												<td colspan="7" align="center" class="verdana12Greybold">
													Secondary lists
												</td>
											</tr>
											<tr align="center">
												<s:iterator value="myHashmapSettingsMap" status="stat">
												<s:hidden name="myHashmapSettingsMap[%{#stat.index}].description" value="%{myHashmapSettingsMap[#stat.index].description}" />
													<s:hidden name="myHashmapSettingsMap[%{#stat.index}].type" value="%{myHashmapSettingsMap[#stat.index].type}" />
													<s:hidden name="myHashmapSettingsMap[%{#stat.index}].id" value="%{myHashmapSettingsMap[#stat.index].id}" />
													<s:if test="%{myHashmapSettingsMap[#stat.index].type != 'Central list'}">
														<td class="verdana12blacknormal">
															<s:text name="%{myHashmapSettingsMap[#stat.index].type}" />
														</td>
													</s:if>
												</s:iterator>
											</tr>

											<tr>
												<td align="right" class="verdana12Greybold">
													Homepage Featured Columns:
												</td>
												<td colspan="8" align="center">
													<s:textfield name="featuredColumn"
														value="%{featuredColumn}" size="5" theme="simple" cssClass="Textfiled-border" />
													<br>
												</td>
											</tr>
											<tr align="center">
												<td align="right" class="verdana12Greybold">
													Featured Items in list:
												</td>
												<s:iterator value="myHashmapSettingsMap" status="stat">
													<td>
														<s:textfield
															name="myHashmapSettingsMap[%{#stat.index}].itemsInList"
															value="%{myHashmapSettingsMap[#stat.index].itemsInList}"
															theme="simple" size="3" cssClass="Textfiled-border" />
													</td>
												</s:iterator>

											</tr>
											<tr align="center">
												<td rowspan="2" align="right" class="verdana12Greybold">
													Default Items:
												</td>
												<td colspan="8" align="center" class="verdana12blacknormal">
													Default items in these lists must be uniq and must be more,
													atleast equal to minimal number of featured items of the
													certain list type (number in above fields) and to the
													"central" list. Also nice to be if these items are NOT
													"homepage featured" itself. But all this is not "critical"
													for the script, if less, it will show less rows, but will
													not allow dublication of item on page...
												</td>
											</tr>
											<tr align="center">
												<td align="right" class="verdana12Greybold">
													Uses default items of secondary lists, depends of type.
												</td>
												<s:iterator value="myHashmapSettingsMap" status="stat">
													<s:if
														test="%{myHashmapSettingsMap[#stat.index].defaultItems != 'No Data'}">
														<td>
															<s:textarea rows="3" cols="7"
																name="myHashmapSettingsMap[%{#stat.index}].defaultItems"
																theme="simple" cssClass="Textfiled-border" />
														</td>
													</s:if>
												</s:iterator>
											</tr>
											<tr align="center">
												<td align="right" class="verdana12Greybold">
													Homepage Thumbnail Width:
												</td>
												<s:iterator value="myHashmapSettingsMap" status="stat">
													<td>
														<s:textfield name="myHashmapSettingsMap[%{#stat.index}].width"
															theme="simple" size="3" cssClass="Textfiled-border" />
													</td>
												</s:iterator>
											</tr>
											<tr align="center">
												<td align="right" class="verdana12Greybold">
													Homepage Thumbnail Height:
												</td>
												<s:iterator value="myHashmapSettingsMap" status="stat">
													<td>
														<s:textfield name="myHashmapSettingsMap[%{#stat.index}].height" 
															theme="simple" size="3" cssClass="Textfiled-border" />
													</td>
												</s:iterator>

											</tr>
										</tbody>
									</table>
									<br>
									<div align="center">
										<center>
											<table border="0" cellpadding="5" cellspacing="0"
												width="100%">
												<tbody>
													<tr>
														<td align="center">
															<s:submit type="image"
																src="../Admin-Images/save-chagnes-button.gif" />
															<img style="cursor: pointer;"
																onclick="document.getElementById('form').reset();"
																src="../Admin-Images/reset-button.gif" alt="Reset">
														</td>
													</tr>
												</tbody>
											</table>
										</center>
									</div>
								</s:form>
							</td>
						</tr>

					</tbody>
				</table>
			</td>
		</tr>
	</tbody>
</table>